<?php

//我的积分
class ScoreController extends UserLoginBaseC {

    public function actionIndex() {
        $MenberModel = new MembersModel();
        $menber = $MenberModel->findByPk(Yii::app()->user->id);
        $MembersActionModel = new MembersActionModel();
        $scores = $MembersActionModel->getScores(Yii::app()->user->id);
        $this->render('index', array(
            'user' => $menber,
            'scores' => $scores[0],
            'pages' => $scores[1],
        ));
    }

}
